package com.hanamaki.operator.scanner;

import java.util.Scanner;

public class Demo01 {
    public static void main(String[] args) {

        /**
         * 1、用boolean类型描述：学员张三的考试成绩是否比学员李四（80分）高
         */

        // 1. 创建一个键盘扫描对象，用来接收控制台中用户输入的数据
        Scanner scanner = new Scanner(System.in);  // File  Scanner  流
        System.out.println("请输入张三成绩：");
        int score = scanner.nextInt();

        System.out.println("请输入李四成绩：");
        String lisi = scanner.next();

        int lisiScore = Integer.parseInt(lisi);


        boolean flag = score > lisiScore;

        System.out.println("比大小：" + flag);

        scanner.close();

    }
}
